package com.etsii.android.cliente;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class InitClienteActivity extends Activity {

	static String maquina;
	static int puerto;
	static int id_cliente;
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
    
    public void buttonplayServidorOnClick(View target) {
    	EditText textMaquina = (EditText) findViewById(R.id.maquina);
    	EditText textPuerto = (EditText) findViewById(R.id.puerto);
    	EditText textId = (EditText) findViewById(R.id.id_cliente);
	
    	maquina = textMaquina.getText().toString();
    	puerto = Integer.parseInt(textPuerto.getText().toString());
        id_cliente = Integer.parseInt(textId.getText().toString());
    	
    	Intent i = new Intent(this, ClienteAgenciaActivity.class); //al pulsar el boton sale la activity ServidorAgencia
    	startActivity(i);
    }
}
